package com.qqtech.qquan.user.model;

import java.sql.Timestamp;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class UserBaseQuery extends UserBase {
	/**
	 * 是否是好友
	 */
	private Integer isFriend;
	
	/**
	 * 含有ids
	 */
	private List<Integer> containIds;

	/**
	 * 搜索文字
	 */
	private String search;

	/**
	 * 搜索名称、手机号、email、QQ号等
	 */
	private String searchMore;

	/**
	 * 过滤ids
	 */
	private List<Integer> filterIds;

	/**
	 * 查询开始时间
	 */
	private java.sql.Timestamp startAt;

	/**
	 * 查询结束时间
	 */
	private java.sql.Timestamp endAt;
	
	private java.sql.Timestamp lastClickTime;
	private java.sql.Timestamp currentClickTime;
	/**
	 * 上次点击时间
	 */
	private Long lastClick;
	/**
	 * 当前点击时间
	 */
	private Long currentClick;
	/**
	 * 所属社区
	 */
	private String communityName;
	private Integer honorValue;
	private Integer honorLevel;
	
	/**
	 * 荣誉值范围
	 */
	private Integer honorValueStart;
	private Integer honorValueEnd;
	
	/**
	 * 圈币值范围
	 */
	private Integer quanValueStart;
	private Integer quanValueEnd;
	
	/**
	 * 余额范围
	 */
	private Integer moneyStart;
	private Integer moneyEnd;
	
	/**
	 * 排序字段：honorValue，quanValue，money
	 */
	private String sortField;
	/**
	 * 排序方向：ASC，DESC
	 */
	private String sortDirection;
	
	public Integer getQuanValueStart() {
		return quanValueStart;
	}

	public void setQuanValueStart(Integer quanValueStart) {
		this.quanValueStart = quanValueStart;
	}

	public Integer getQuanValueEnd() {
		return quanValueEnd;
	}

	public void setQuanValueEnd(Integer quanValueEnd) {
		this.quanValueEnd = quanValueEnd;
	}

	public Integer getMoneyStart() {
		return moneyStart;
	}

	public void setMoneyStart(Integer moneyStart) {
		this.moneyStart = moneyStart;
	}

	public Integer getMoneyEnd() {
		return moneyEnd;
	}

	public void setMoneyEnd(Integer moneyEnd) {
		this.moneyEnd = moneyEnd;
	}
	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public List<Integer> getContainIds() {
		return containIds;
	}

	public java.sql.Timestamp getEndAt() {
		return endAt;
	}
	
	public Long getLastClick() {
		return lastClick;
	}
	
	public Long getCurrentClick() {
		return currentClick;
	}

	public List<Integer> getFilterIds() {
		return filterIds;
	}

	public Integer getIsFriend() {
		return isFriend;
	}

	public String getSearch() {
		return search;
	}

	public String getSearchMore() {
		return searchMore;
	}

	public java.sql.Timestamp getStartAt() {
		return startAt;
	}
	public void setContainIds(List<Integer> containIds) {
		this.containIds = containIds;
	}
	public void setEndAt(java.sql.Timestamp endAt) {
		this.endAt = endAt;
	}
	
	public void setEndAtStr(String v) {
		this.setEndAt(TimeUtil.getTimeByDatetimeLocal(v));
	}
	public void setFilterIds(List<Integer> filterIds) {
		this.filterIds = filterIds;
	}
	
	public void setIsFriend(Integer isFriend) {
		this.isFriend = isFriend;
	}
	
	public void setSearch(String search) {
		this.search = search;
	}

	public void setSearchMore(String searchMore) {
		this.searchMore = searchMore;
	}

	public void setStartAt(java.sql.Timestamp startAt) {
		this.startAt = startAt;
	}

	public void setStartAtStr(String v) {
		this.setStartAt(TimeUtil.getTimeByDatetimeLocal(v));
	}
	public void setLastClick(Long lastClick) {
		this.lastClick = lastClick;
	}
	
	public void setCurrentClick(Long currentClick) {
		this.currentClick = currentClick;
	}


	public Timestamp getLastClickTime() {
		return lastClickTime;
	}

	public void setLastClickTime(Timestamp lastClickTime) {
		this.lastClickTime = lastClickTime;
	}

	public Timestamp getCurrentClickTime() {
		return currentClickTime;
	}

	public void setCurrentClickTime(Timestamp currentClickTime) {
		this.currentClickTime = currentClickTime;
	}

	public Integer getHonorValueStart() {
		return honorValueStart;
	}

	public void setHonorValueStart(Integer honorValueStart) {
		this.honorValueStart = honorValueStart;
	}

	public Integer getHonorValueEnd() {
		return honorValueEnd;
	}

	public void setHonorValueEnd(Integer honorValueEnd) {
		this.honorValueEnd = honorValueEnd;
	}
	
	public Integer getHonorValue() {
		return honorValue;
	}

	public void setHonorValue(Integer honorValue) {
		this.honorValue = honorValue;
	}
	
	
	public Integer getHonorLevel() {
		return honorLevel;
	}

	public void setHonorLevel(Integer honorLevel) {
		this.honorLevel = honorLevel;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getSortField() {
		return sortField;
	}

	public void setSortField(String sortField) {
		this.sortField = sortField;
	}

	public String getSortDirection() {
		return sortDirection;
	}

	public void setSortDirection(String sortDirection) {
		this.sortDirection = sortDirection;
	}

}